/***************************************************************************
 *   Copyright (C) 2008 by Phillip Aldridge   *
 *   info@imi21.com   *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
/**
   Weather 2008 default configuration file
   Set these values to work with your station
   You may also have to modify the open3600.config
   
*/
#ifndef CONFIG_H
#define CONFIG_H
/**
   metric or imperial
*/
#define _METRIC   TRUE

/**
   Update the station every n Minutes
*/
#define  _STATION_UPDATE_MINUTES   5

/**
   Path to the open3600 mysql3600 executable
*/
#define  _STATION_PATH_EXE           "/home/data/projects/open3600"

/**
   Path to the local image and banner templates
*/
#define  _IMAGE_PATH        "/home/data/projects/meteo2008/src/images"

/**
   FTP connection params
   Path to save the PHP file and web banner
*/

#define _FTP_HOST	  "ftp.burgundy-canal.com"
#define _FTP_PORT	   21
#define _FTP_USERNAME	  "USERNAME"
#define _FTP_PASSWORD	  "PASSWORD"
#define _FTP_DIRECTORY    "/web/weather"
#define _FTP_LOCAL_FILES  "/home/data/projects/meteo2008/ftpFiles/"
#define _FTP_PHP_FILE     "meteo.php"
#define _FTP_BANNER       "meteo.png"
#define _FTP_WIND	  "wind.png"
#define _FTP_TEMPERATURE  "temp.png"
#define _FTP_UPDATE     0

/**
   Units to display
*/
#define  _UNIT_TEMP  " C"
#define  _UNIT_SPEED " km/h"
#define  _UNIT_PRESSURE " h/Pa"
#define  _UNIT_RAIN " mm"
#define  _UNIT_HUMIDITY " %"

/**
database connections for meteo2008"
*/
#define _DB_DRIVER	    "QMYSQL3"
#define _DB_DBNAME	    "meteo2008"
#define _DB_USER	    "root"
#define _DB_PASSWD	    ""
#define _DB_HOST	    "localhost"
#define _DB_DATATABLE	    "meteo2008.weatherinfo"

/**
   Wundergrund variables
*/
#define _WUNDERGRUND_URL       "http://weatherstation.wunderground.com"
#define _WUNDERGRUND_PATH      "/weatherstation/updateweatherstation.php" 
#define _WUNDERGRUND_ID        "YOURID"
#define _WUNDERGRUND_PASSWORD  "YOUPASSWORD"
#define _WUNDERGRUND_SOFTWARE  "meteo2008%20v0.1"
#define _WUNDERGRUND_UPDATE     0
 
/**
   Mamimum and miniumm values to use for the graphs
*/
#define _TEMP_MAX    40
#define _TEMP_MIN    -20
#define _TEMP_ZERO   0
#define _WIND_MIN    0
#define _WIND_MAX    60
#define _PRESSURE_MIN    980
#define _PRESSURE_MAX    1036
#define _PRESSURE_ZERO   1010
#define _DEW_MIN         -15
#define _DEW_MAX         25
#define _HUMIDITY_MIN   20
#define _HUMIDITY_MAX   180
#define _HUMIDITY_ZERO  80

/**
   Default strings for the banner
*/
#define _BANNER_TITLE      "Burgundy Canal Weather Station"
#define _BANNER_LOCATION   "Cussy le Chatel"
#define _BANNER_MANAGER	   "Phillip Aldridge"
#define _BANNER_GPS        "47 deg 9'54.89\" N 4 deg 35'14.71\" E"
#define _BANNER_COPYRIGHT  "Copyright www.imi21.com 2007"

#endif
